//
//  BroadcastPack.h
//  YSSmartHome
//
//  Created by Yahaong on 16/8/18.
//  Copyright © 2016年 yahaong. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface BroadcastPack : NSObject
@property (nonatomic, assign) uint8_t  flag;
@property (nonatomic, assign) uint32_t apsn;
@property (nonatomic, assign) uint64_t luid;
@property (nonatomic, assign) uint8_t  length;
@property (nonatomic, copy)   NSString *name;
@property (nonatomic, copy)   NSString* strIP;

+ (BroadcastPack*) format:(void*)bytes length:(int)length;
- (NSData *)toData;
@end
